package com.xdf.ecommerce.dao;

import com.mybatisflex.core.BaseMapper;
import com.xdf.ecommerce.entity.EcommerceBalance;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author chanchaw
 * @create 2025-10-25 16:40
 */
@Repository
public interface EcommerceBalanceDao extends BaseMapper<EcommerceBalance> {
    @Select("select * from t_ecommerce_balance where user_id = #{userId} order by id desc limit 1")
    EcommerceBalance findByUserId(@Param("userId") Long userId);
}
